﻿<form class="layui-form model-form" id="form1" action="" style="width:100%">
    <input name="id" id="id" type="hidden" value="{$info.id|default=0}">
    

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">公司名称：</label>
            <div class="layui-input-inline">
            
                <input name="name" value="{$info['name']|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入公司名称" class="layui-input" type="text">
            
            </div>
        </div>
        
        <div class="layui-inline">
            <label class="layui-form-label">同行公司：</label>
            <div class="layui-input-inline">

                {common:select param="peer_id|0|同行公司|username|id" data="$peerList" value="isset($info['peer_id']) ? $info['peer_id'] : 0"}
            
            </div>
        </div>
    </div>   
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">业务员：</label>
            <div class="layui-input-inline">

                {common:select param="service_id|0|业务员|username|id" data="$serviceList" value="isset($info['service_id']) ? $info['service_id'] : 0"}
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">代理人：</label>
            <div class="layui-input-inline">

                {common:select param="agent_id|0|代理人|username|id" data="$agentList" value="isset($info['agent_id']) ? $info['agent_id'] : 0"}
            
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">联系人：</label>
            <div class="layui-input-inline">
            
                <input name="contacts_name" value="{$info['contacts_name']|default=''}" autocomplete="off" placeholder="请输入联系人" class="layui-input" type="text">
            
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">客户编号:</label>
            <div class="layui-input-inline">
            
                <input name="company_no" value="{$info['company_no']|default=''}" lay-verify="" autocomplete="off" placeholder="请输入客户编号" class="layui-input" type="text">
            
            </div>
        </div>
        
    </div>
            
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">电话：</label>
            <div class="layui-input-inline">
            
                <input name="phone" value="{$info['phone']|default=''}" autocomplete="off" placeholder="请输入电话" class="layui-input" type="text">
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">地址：</label>
            <div class="layui-input-inline">
            
                <input name="address" value="{$info['address']|default=''}" autocomplete="off" placeholder="请输入地址" class="layui-input" type="text">
            
            </div>
        </div>
        
    </div>
    
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">总委编号：</label>
            <div class="layui-input-inline">
            
                <input name="general_number" value="{$info['general_number']|default=''}" autocomplete="off" placeholder="请输入总委编号" class="layui-input" type="text">
            
            </div>
        </div>
        <!-- <div class="layui-inline">
            <label class="layui-form-label">费减情况：</label>
            <div class="layui-input-inline">
            
                {common:select param="fee_reduction|0|费减情况|username|id" data="0=不合格,1=合格" value="isset($info['fee_reduction']) ? $info['fee_reduction'] : 0"}
            
            </div>
        </div> -->

        <div class="layui-inline">
            <label class="layui-form-label">费减备案年份：</label>
            <div class="layui-input-inline">
            
                <input name="fee_year" value="{$info['fee_year']|default=''}" autocomplete="off" placeholder="请输入费减年份" class="layui-input" type="text">
            
            </div>
        </div>
    </div>      

    <div class="layui-form-item">    
        <label class="layui-form-label">第一发明人身份证：</label>
        <div class="layui-input-block" style="display:flex;align-items: center;flex-wrap: wrap;">

            {upload:album name="corporate_idcard|身份证|90x90|10|450x450" value="isset($info['corporate_idcard'])?$info['corporate_idcard']:[]"}

        </div>
    </div>


    <div class="layui-form-item">

        <label class="layui-form-label">营业执照：</label>
        {upload:album name="business_license|营业执照|90x90|10|450x450" value="isset($info['business_license'])?$info['business_license']:[]"}

    </div>


    
    <div class="layui-form-item">

        <label class="layui-form-label">代理委托书：</label>

        {upload:album name="acting_book|代理委托书|90x90|10|450x450" value="isset($info['acting_book'])?$info['acting_book']:[]"}
        </div>
    </div>
    
    <div class="layui-form-item">

        <label class="layui-form-label">总委托书：</label>
        {upload:album name="total_book|总委托书：|90x90|10|450x450" value="isset($info['total_book'])?$info['total_book']:[]"}

    </div>


    <div class="layui-form-item">    
        <label class="layui-form-label">其它：</label>
        <div class="layui-input-block" style="display:flex;align-items: center;flex-wrap: wrap;">

            {upload:album name="ofcomany_other|其它|120x120|10|450x450" value="isset($info['ofcomany_other'])?$info['ofcomany_other']:[]"}

        </div>
    </div>

    <div class="layui-form-item" style="width:625px;">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-block">
            <textarea name="remark" placeholder="请输入备注" class="layui-textarea">{$info.remark|default=''}</textarea>
        </div>
    </div>
    <!-- {widget:submit name="submit|立即保存,close|关闭"} -->
    <div class="layui-form-item text-center model-form-footer">
        <input type="button" value="立即保存" class="layui-btn layui-btn-success btn-save">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">关闭</button>
    </div>
</form>
<style>
    .select-search-input {
        position: absolute;
        z-index: 2;
        width: 80%;
    }
</style>